package com.rabbit.service;

import com.rabbit.exception.BusinessException;
import com.rabbit.vo.req.UserLoginReq;
import com.rabbit.vo.res.LoginRes;

import javax.servlet.http.HttpServletRequest;

/**
 * <h1>登录、登出业务接口</h1>
 *
 * @author zjw
 * @date 2022/1/13 14:31
 */
public interface LoginService {

    /**
     * 用户登录
     *
     * @param userLoginReq 后台登录请求对象
     * @param request      HttpServletRequest
     * @return LoginRes 响应封装
     * @throws BusinessException 相关业务异常
     */
    LoginRes login(UserLoginReq userLoginReq, HttpServletRequest request) throws BusinessException;
}
